const webpack = require('webpack');
const _ = require('lodash');

module.exports = {
  entry:  {
    bundle: './src/app.js',
    vendor: ['lodash']
  },
  output: {
    path: '/',
    filename: '[name].js'
  },
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [
          { loader: "style-loader" },
          { loader: "css-loader" }
        ]
      }
    ]
  },
  plugins: [
    new webpack.HotModuleReplacementPlugin(),
  ],
  devtool: 'cheap-source-map',
  devServer: {
    contentBase: './public',
    historyApiFallback: true,
    inline: true,
    port: 10086,
    open: true
  }
}
